home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
langs
/
clisp.zoo
/
clisp
/
examples
/
misc
/
contortd.lsp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Lisp/Scheme
|
1991-10-25
|
466 b
|
20 lines
; Beispiel aus CLTL S. 120:
(defun test1 (items)
(block loser
(catch 'stuff
(mapcar #'(lambda (x)
(if (numberp x) (hairyfun x) (return-from loser nil))
)
items
) ) ) )
; Contorted Example aus CLTL S. 40:
(defun test2 (f g x)
(if (= x 0)
(funcall f)
(block here
(+ 5 (test2 g #'(lambda () (return-from here 4)) (- x 1) ))
) ) )
(eval-when (load eval) (test2 nil nil 2))